i = 1
while i <= 9:
    ok = 1
    while ok <= i:
        print(f'{ok} * {i} = {ok * i}', end =' ')
        ok += 1
    print()
    i += 1

